﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RayTracing
{
    public class Cone : Geometry
    {
        public float x, y, z;
        public Cone(float x, float y, float z)
        {

        }
        public float distance(Ray rei)
        {
            return 0;
        }
        public P3 normal(P3 p)
        {
            //x -x2 + y2 + z2 = 0
            //y x2 - y2 + z2 = 0
            //z x2 + y2 - z2 = 0
            x = ((-(p.x * p.x)) + (p.y * p.y) + (p.z * p.z));
            y = ((p.x * p.x) - (p.y * p.y) + (p.z * p.z));
            z = ((p.x * p.x) + (p.y * p.y) - (p.z * p.z));
            return new P3(x, y, z);
        }
        public P2 toP2(P3 p)
        {
            return new P2(0, 0);
        }
    }
}
